package org.helgoboss.demo_launchlet

import org.helgoboss.osgi_additions.{OsgiContext, OsgiProvider}
import org.helgoboss.launchlet._

class DemoLaunchletActivator extends OsgiContext with OsgiProvider {
    whenBundleActive {
        new Launchlet {
            val name = "Demo"
            def execute(context: LaunchletExecutionContext) = {
                println("demo")
                0
            }
        }.providesService[Launchlet]
        new Launchlet {
            val name = "Demo 2"
            def execute(context: LaunchletExecutionContext) = {
                println("demo2")
                0
            }
        }.providesService[Launchlet]
    }
}